package com.ankicoo.common.response;

/**
 * @author  jppeng
 */
public enum ResponseCode {
    /**成功 失败 需要登录*/
    SUCCESS(0,"SUCCESS"),
    ERROR(1,"ERROR"),
    NEED_LOGIN(401,"NEED_LOGIN"),
    WITHOUT_AUTHORITY(403,"WITHOUT_AUTHORITY");

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }

    public String getDesc(){
        return desc;
    }
}
